Hello and welcome to the next module of this
course, error handling. In the previous module, you understood flowcharts,
decision-making in flowcharts, loops in flowcharts,
nesting flowcharts and sequences and the difference between sequences
and flowcharts. By the end of this module, you will be able to understand the different types of errors
and exceptions in studio. Different error
handling approaches and different activities to
handling errors in studio. In this video, you
will understand the different types of
errors and exceptions. Let's get started.
What is an error? An error is any
type of event that prevents the regular
execution of a program. Some of the errors completely stop the execution of a process. Some delay it, and some just
interfere with the execution without having a clear impact
based on their source. Errors can be categorized
into different types. The first is the syntax error, where the compiler or
interpreter cannot parse the written code into meaningful
computer instructions. The second is the user error, where the software
determines that the user input is not
acceptable for some reason. The third is the
programming error, where the program contains no syntax errors but does not produce the
expected results. These are often called bugs. Now, let's understand
exceptions. Exceptions are a subset of errors that are serious
enough to produce a material effect and
for which there can be a mechanism to identify
and address them. Exception handling
mechanism refers to how to prevent and or
respond to exceptions. Sometimes the handling mechanism can be simply stopping
the execution. Some of the exceptions are
linked to the systems used, while others are linked to the logic of the
business process. There are two types
of exceptions, application or system exception
and business exception. The application
exception describes an error rooted in
a technical issue, such as an application
that is not responding. This type of error has a chance
of being solved simply by retrying the transaction as
the application can unfreeze. It can be managed by following good naming conventions for
activities and workflows. This helps in tracking the activity that
caused the exception. The business exception describes an error rooted in the fact that certain data which the
automation project depends on is incomplete, missing, outside
of set boundaries or does not pass other
data validation criteria. It is an exception from
the usual process flow and the validation is
made explicitly by the developer
inside the workflow. The text and the
exception should contain enough information for a human user to understand what happened and what action
needs to be taken. In the next video,
you will understand the different
activities and error handling approaches
used in studio. That's it for this video.
Thanks for watching.